home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Window / c / ForceRedrw < prev    next >
Text File  |  1995-07-08  |  2KB  |  48 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Window.ForceRedrw.c
  12.     Author:  Copyright © 1994 Lenny
  13.     Version: 0.01 (18 Nov 1994)
  14.     Purpose: Marks a screen area for redraw by the Wimp.
  15.     History: 0.01 (18 Nov 94) : Added 'Window_ForceRedraw()'
  16.  
  17. */
  18.  
  19. /* --- LOAD HEADERS ------------------------------------------------------ */
  20.  
  21. /* --- DeskLib ----------------------------------------------------------- */
  22. #include "DeskLib:WimpSWIs.h"          /* Low-level WIMP commands          */
  23. #include "DeskLib:Window.h"
  24.  
  25. /* === FUNCTION DEFINITIONS ============================================== */
  26.  
  27. extern void Window_ForceRedraw(window_handle wh, int x0, int y0, int x1, int y1)
  28. /*
  29.  *  Marks a screen area for redraw by the Wimp.
  30.  *  (x0,y0) is the bottom left corner.
  31.  *  Work Area coordinates, ie the top-left corner is generally 0,0 with y
  32.  *  increasingly negative working down the screen.
  33.  *
  34.  *  Essentially just a veneer for Wimp_ForceRedraw().
  35.  */
  36. {
  37.   window_redrawblock    block;
  38.  
  39.   block.window = wh;
  40.   block.rect.min.x = x0;  block.rect.min.y = y0;
  41.   block.rect.max.x = x1;  block.rect.max.y = y1;
  42.   /******  FIND EQUIVALENT OF 'wimpt_noerr()'  ******/
  43.   Wimp_ForceRedraw(&block);
  44.  
  45. }
  46.  
  47. /***************************************************************************/
  48.